﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VentaElectrodomesticos.AbmRol
{
    public class Rol
    {
        public int idRol;
        public String nomRol;
        public char status;

        public Rol(DataGridViewRow row)
        {
            this.setearConRow(row);
        }

        public void setearConRow(DataGridViewRow row)
        {
            this.idRol = (int)row.Cells["idRol"].Value;
            this.nomRol = row.Cells["rol"].Value.ToString();            
            this.status = Convert.ToChar(row.Cells["status"].Value);
        }
    }
}
